#include <stdio.h>

int add_rng(int low, int high) {
	int i, sum;
	for(i=low; i<=high; i++) {
		sum = sum + i;
	}
	return sum;
}

int main(int argc, char *argv[]) {
	int res[100];
	res[0] = add_rng(1, 10);
	res[1] = add_rng(1, 100);
	printf("res[0]=%d\nres[1]=%d\n", res[0], res[1]);
	return 0;
}

